#ifndef PLAYLISTVOTEWIDGET_H
#define PLAYLISTVOTEWIDGET_H

#include <QObject>
#include <QWidget>
#include <QLabel>
#include <QPushButton>
#include <QHBoxLayout>

#include "Playlist.h"
#include "../Client/PlaylistClient.h"

/*-------------------------------------------------------------------------------------
--
--	CLASS: PlaylistVoteWidget
--
--	Date: April 1, 2010
--
--	REVISIONS (Date and Description):
--
--	DESIGNER: Erick Ribeiro
--
--	PROGRAMMER: Erick Ribeiro
--
--  INTERFACE: class PlaylistVoteWidget : public QWidget
--
--  RETURNS: N/A
--
--	NOTES: Program class that handles the voting GUI. Handles the vote button, 
--         and number of votes.
--
-------------------------------------------------------------------------------------*/
class PlaylistVoteWidget : public QWidget
{
Q_OBJECT

public:
    PlaylistVoteWidget(Song * theSong, Playlist * thePlaylist, PlaylistClient * client = 0);
    void updateVotes();

public slots:
    void voteButtonClicked ();

private:
    QLabel      * voteCounter;
    QPushButton * voteButton;
    QHBoxLayout * layout;

    Song           * song;
    Playlist       * playlist;
    PlaylistClient * playlistClient;
};

#endif // PLAYLISTVOTEWIDGET_H
